﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;

namespace Everynet
{
    /// <summary>
    /// Summary description for checkLogin
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
     [System.Web.Script.Services.ScriptService]
    public class checkLogin : System.Web.Services.WebService
    {

        [WebMethod]
        public string checkAdmin(string username,string password)
        {

            if (username.ToLower() == "admin" && password.ToLower()=="admin")
            {
                return "1"; //"Available";
            }
            else
            {
                return "0"; //"UnAvailable";
            }

        }
    }
}
